package com.tunan.system.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tunan.persistence.dao.sck.EntityMapper;
import com.tunan.persistence.dao.sck.TSysUserMapper;
import com.tunan.persistence.model.TSysUser;

@Service
public class SysUserService extends EntityService<TSysUser> {
	@Autowired
	private TSysUserMapper tSysUserMapper;

	@Override
	public EntityMapper<TSysUser> getMapper() {
		return tSysUserMapper;
	}

	public List<TSysUser> findAll() {
		return tSysUserMapper.findAll();
	}

	/**
	 * 
	 * @param tSysUser
	 * @return TSysUser
	 * @todo 查询用户
	 * @date 2016年3月23日
	 * @author kinda
	 */
	public TSysUser findByDlm(TSysUser tSysUser) {
		// TODO Auto-generated method stubC
		return tSysUserMapper.findByDlm(tSysUser);
	}

	public List<TSysUser> findUserByRoleId(String id) {
		return tSysUserMapper.findUserByRoleId(id);
	}
}
